<!DOCTYPE html>
<html>
<head>
    <title>Boolean Example 2</title>
    <script type="text/javascript">
          
        var message = "Hello world!";
        if (message){
            alert("Value is true");
        }

 
              
    </script>

</head>
<body>
  
</body>
</html>